﻿@model IEnumerable<CloudFranceTriple.Models.ShoutBoxSet>
<table>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    <div class="editor-label" style="width: 650px; word-wrap: break-word;">
                        @Html.DisplayTextFor(modelItem => item.MessageShoutBox)
                    </div>
                    <div class="editor-field">
                        @Html.DisplayTextFor(modelItem => item.UserNameAuthorShoutBox) - @Html.DisplayFor(modelItem => item.CreationDateShoutBox, "TemplateUserDateTime")
                        @{if (User.IsInRole("RoleAdminShoutBox") || User.Identity.Name.ToLower() == item.UserNameAuthorShoutBox.ToLower())
                          {
                            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", "ShoutBox", new { id = item.Id, area = "Portail" }, null)
                            @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete, "Delete", "ShoutBox", new { id = item.Id, area = "Portail" }, null)
                          }
                        }
                        <br />
                    </div>
                </td>
            </tr>
        }

    </tbody>
</table>
